package com.dingreading.cloud.soms.mapper;

import com.alibaba.fastjson.JSONObject;
import com.dingreading.cloud.common.dto.CorpTeacherDto;
import com.dingreading.cloud.soms.entity.Staff;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 映射层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface StaffMapper extends BaseMapper<Staff> {

    List<CorpTeacherDto> getCorpTeachers(@Param("storeUid") String storeUid,@Param("keyword") String keyword,
                                         @Param("staffUid") String staffUid, @Param("enabled") Integer enabled);

    List<JSONObject> listByStoreStaff(@Param("storeUid") String storeUid, @Param("enabled") Integer enabled,
                                      @Param("keyword") String keyword, @Param("marketer") Integer marketer);


}
